﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_PRODUCT.Product.PartHandling;

namespace ERP_RORZE_PRODUCT.Product.Forms
{
    public partial class Frm_PartHandling : DevExpress.XtraEditors.XtraForm
    {
        ctrlAnodInspDetail ctrlAnodInspdetail = new ctrlAnodInspDetail();
        ctrlAnodQtyChangeDetail ctrlAnodQtyChangedetail = new ctrlAnodQtyChangeDetail();
        ctrlBusInspDetail ctrlBusInspdetail = new ctrlBusInspDetail();
        ctrlBusInspMisReturnDetail ctrlBusInspMisReturndetail = new ctrlBusInspMisReturnDetail();
        ctrlF3StoreDetail ctrlF3Storedetail = new ctrlF3StoreDetail();
        ctrlHandInspDetail ctrlHandInspdetail = new ctrlHandInspDetail();
        ctrlHandInspMisReturnDetail ctrlHandInspMisReturndetail = new ctrlHandInspMisReturnDetail();
        ctrlHandInspStatus ctrlHandInspstatus = new ctrlHandInspStatus();
        ctrlInspAnodDetail ctrlInspAnoddetail = new ctrlInspAnodDetail();
        ctrlInspBusMisReturnDetail ctrlInspBusMisReturndetail = new ctrlInspBusMisReturnDetail();
        ctrlInspF3Detail ctrlInspF3detail = new ctrlInspF3Detail();
        ctrlInspHandMisReturnDetail ctrlInspHandMisReturndetail = new ctrlInspHandMisReturnDetail();
        ctrlMAchineHandDetail ctrlMachineHandDetail = new ctrlMAchineHandDetail();
        
        public Frm_PartHandling()
        {
            InitializeComponent();
        }

        private void navItemMachineHandDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlMachineHandDetail);
            ctrlMachineHandDetail.Dock = DockStyle.Fill;
        }

        private void navItemInspHandMistakeDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlInspHandMisReturndetail);
            ctrlInspHandMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navItemHandInspMistakeDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlHandInspMisReturndetail);
            ctrlHandInspMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navItemBusInspDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlBusInspdetail);
            ctrlBusInspdetail.Dock = DockStyle.Fill;
        }

        private void navItemInspBusMistakeDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlInspBusMisReturndetail);
            ctrlInspBusMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navItemBusInspMistakeDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlBusInspMisReturndetail);
            ctrlBusInspMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navItemInspAnodDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlInspAnoddetail);
            ctrlInspAnoddetail.Dock = DockStyle.Fill;
        }

        private void navItemAnodQtyChangeDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlAnodQtyChangedetail);
            ctrlAnodQtyChangedetail.Dock = DockStyle.Fill;
        }

        private void navItemAnodInspDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlAnodInspdetail);
            ctrlAnodInspdetail.Dock = DockStyle.Fill;
        }

        private void navInspF3Detail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlInspF3detail);
            ctrlInspF3detail.Dock = DockStyle.Fill;
        }

        private void navItemF3StoreDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartHandling.Panel2.Controls.Clear();
            spcPartHandling.Panel2.Controls.Add(ctrlF3Storedetail);
            ctrlF3Storedetail.Dock = DockStyle.Fill;
        }


    }
}